package com.item.actuator.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@Api("swaggerDemoController相关的api")
public class UserController {

    @ApiOperation(value = "用户列表",notes = "获取用户的所有信息")
    @ApiImplicitParam(name="id",value = "主键id",paramType = "path",required = true,dataType = "String")
    @GetMapping("/getAll/{id}")
    public List<String> getAll(String id){
        List<String> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add("abc:"+i);
        }
        return list;
    }
}
